home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / utility / masdir54.zip / SDLFINIS.BAT < prev    next >
DOS Batch File  |  1991-04-19  |  2KB  |  60 lines

  1. ECHO Off
  2. IF NOT .%3 == . GOTO PARMSOK
  3. ECHO Please start the setup program by running SDLSETUP.
  4. GOTO QUIT
  5. :PARMSOK
  6. ECHO * * *
  7. :TITLE ... now another check on the SDL version to avoid problems.
  8. IF NOT .%1 == .154 GOTO VERSION
  9. IF NOT .%2 == .155 GOTO VERSION
  10. sdl_get B
  11. ECHO * * *
  12. ECHO This is the last section:
  13. ECHO * * *
  14. ECHO Registered users may customize the titles on the first two header
  15. ECHO lines.  These titles will display or not depending on the Hdr
  16. ECHO default setting.  They can be toggled on or off with the /H option.
  17. Echo In order to protect the shareware notice this customization feature
  18. Echo is not available in the shareware version.
  19. ECHO * * *
  20. :REM Better make another check on SDL Version (see REM below).
  21. SDL /!
  22. IF NOT ERRORLEVEL %1 GOTO VERSION
  23. IF ERRORLEVEL %2 GOTO VERSION
  24. REM Check the size of SDL.COM
  25. sdl_get F SDL.COM
  26. IF NOT ERRORLEVEL 1 GOTO :SIZEOK
  27. REM The size must match what is passed in %3, else version is incorrect.
  28. IF NOT .%3 == .%GET% GOTO VERSION
  29. :SIZEOK
  30. :END
  31. Echo E 283 00 00 >>SDLSETUP.TXT
  32. SET GET=00 00
  33. sdl_get $
  34. IF ERRORLEVEL 1 Echo E 283 %GET%>>SDLSETUP.TXT
  35. IF NOT EXIST SDLSETUP.TXT GOTO NOCHANGE
  36. sdl_get F SDLSETUP.TXT
  37. IF NOT ERRORLEVEL 1 GOTO NOCHANGE
  38. echo * * *
  39. echo SDL is being adjusted for a 30 day evaluation period, enjoy! This
  40. Echo will turn off the moving reminder line for a 30 day period to let
  41. Echo you enjoy SDL in peace.  If you are still using this unregistered
  42. Echo copy of SDL at the end of that time, the reminder line will
  43. Echo reappear.  Please support the shareware concept by registering.
  44. echo * * *
  45. pause
  46. SDLDEBUG
  47. REM BATch commands end here, the rest are error messages.
  48. GOTO QUIT
  49. :VERSION
  50. ECHO The version of SDL is incompatible with this version of SDLSETUP.
  51. Echo Please copy compatible versions from your original disk and try again.
  52. :NOCHANGE
  53. ECHO * * *
  54. ECHO NO CHANGES HAVE BEEN MADE TO SDL.COM!
  55. IF EXIST SDLSETUP.TXT ERASE SDLSETUP.TXT
  56. :QUIT
  57. pause
  58. REM SDLDEBUG will clean up any temporary files.
  59. sdldebug END
  60.